home *** CD-ROM | disk | FTP | other *** search
/ Aminet 32 / Aminet 32 (1999)(Schatztruhe)[!][Aug 1999].iso / Aminet / dev / c / amiga-c-apr99.lha / amiga-c / april1999 / files / Display.h < prev    next >
C/C++ Source or Header  |  1999-05-29  |  990b  |  49 lines

  1. /**************************************************************************
  2.  
  3. Name       : Display.h
  4. Programmer : Jesse Chan
  5. Version    : 0.01
  6. Date Begun : 03-24-1999
  7. Date Last  : 04-12-1999
  8. Description: Display header
  9.  
  10. **************************************************************************/
  11.  
  12. #ifndef DISPLAY_H
  13. #define DISPLAY_H
  14.  
  15. // DEFINITIONS ////////////////////////////////////////////////////////////
  16.  
  17. #define WIDTH 640
  18. #define HEIGHT 480
  19. #define DEPTH 3
  20. #define COLORS 8
  21.  
  22. // FUNCTIONS //////////////////////////////////////////////////////////////
  23.  
  24. class Display
  25. {
  26. public:
  27.    Display();
  28.    ~Display();
  29.    void OpenDisplay(void);
  30.    void CloseDisplay(void);
  31.    void ClearDisplay(void);
  32.    void Compile_Title(char*, char*, char*);
  33.    void Worms(void);
  34.    void KeyUpdate(void);
  35.  
  36.    int keypressed;
  37.  
  38. private:
  39.    int x;
  40.    int y;
  41.    int color;
  42. //   int visible_buffer;
  43.    UWORD colortable[COLORS];
  44. };
  45.  
  46. ///////////////////////////////////////////////////////////////////////////
  47.  
  48. #endif
  49.